package com.xlh.virtualization.constant;

/**
 * 容器相关常量
 *
 * @author cheer
 */
public class ContainerConstant {

    /**
     * 容器延迟停止时间
     */
    public static final int CONTAINER_STOP_DELAYED_TIME = 180;

    /**
     * 文件上传临时保存路径
     */
    public static final String FILE_UPLOAD_TMP_DIR;

    /**
     * 文件上传FTP用户名
     */
    public static final String FILE_UPLOAD_USERNAME = "root";

    /**
     * 文件上传FTP密码
     */
    public static final String FILE_UPLOAD_PASSWORD = "root";

    /**
     * 文件上传容器保存路径
     */
    public static final String FILE_UPLOAD_PATH = "/root/tools/";

    static {
        String os = System.getProperty("os.name");
        if (os != null && os.toLowerCase().startsWith("win")) {
            FILE_UPLOAD_TMP_DIR = "C:\\tmp\\container\\";
        } else {
            FILE_UPLOAD_TMP_DIR = "/tmp/container/";
        }
    }
}
